﻿using FreeSql.DatabaseModel;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace xxl_job {

	[JsonObject(MemberSerialization.OptIn), Table(Name = "xxl_job_user", DisableSyncStructure = true)]
	public partial class XxlJobUser {

		[JsonProperty, Column(Name = "id", IsPrimary = true, IsIdentity = true)]
		public int Id { get; set; }

		/// <summary>
		/// 密码
		/// </summary>
		[JsonProperty, Column(Name = "password", StringLength = 50, IsNullable = false)]
		public string Password { get; set; }

		/// <summary>
		/// 权限：执行器ID列表，多个逗号分割
		/// </summary>
		[JsonProperty, Column(Name = "permission")]
		public string Permission { get; set; }

		/// <summary>
		/// 角色：0-普通用户、1-管理员
		/// </summary>
		[JsonProperty, Column(Name = "role", DbType = "tinyint(4)")]
		public sbyte Role { get; set; }

		/// <summary>
		/// 账号
		/// </summary>
		[JsonProperty, Column(Name = "username", StringLength = 50, IsNullable = false)]
		public string Username { get; set; }

	}

}
